package sp.dao.user;

import java.util.Set;

import org.apache.ibatis.annotations.Param;

import sp.pojo.Role;

public interface RoleDao {	
	
	
	/**
	 * 根据角色编号查询角色标识符
	 * @param typeCode
	 * @return
	 */
	public Set<String> findRoles(Integer... rid) throws Exception;
	
	
	public Set<String> findPermission(Integer... rid) throws Exception;
	/**
	 * 新增角色
	 * @param role
	 * @return
	 */
	public Role saveRole(Role role) throws Exception;
	
	
	
	/**
	 * 删除角色
	 * @param rid
	 * @return
	 */
	public boolean deleteRole(@Param("rid") Integer rid) throws Exception;
	
	
	/*
	*//**
	 * 角色 关联权限
	 * @param rid
	 * @param permissionIds
	 * @return
	 *//*
	public boolean correlationPermission(@Param("rid") Integer rid, Integer ...permissionIds) throws Exception;
	
	
	
	*//**
	 * 角色 解绑权限
	 * @param rid
	 * @param permissionIds
	 * @return
	 *//*
	public boolean unCorrelationPermission(@Param("rid") Integer rid, Integer ...permissionIds) throws Exception;
	
	*/
	
}
